package lab02.Test37;

public class Student {
    private String name;
    private  double class1,class2,class3;
    public Student(String name,double c1,double c2,double c3){
        this.name=name;
        this.class1=c1;
        this.class2=c2;
        this.class3=c3;

    }

    public String getName() {
        return name;
    }
    public double getAverage(){
        return (class1+class3+class2)/3;
    }
}
